package org.ww.product.dao;

import org.apache.ibatis.annotations.Param;
import org.ww.product.entity.AttrAttrgroupRelationEntity;
import org.ww.product.entity.AttrGroupEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.ww.product.vo.SpuItemAttrGroupVo;

import java.util.List;

/**
 * 属性分组
 * 
 * @author ww
 * @email ww@qq.com
 * @date 2024-01-05 13:25:18
 */
@Mapper
public interface AttrGroupDao extends BaseMapper<AttrGroupEntity> {

    void deleteAttrGroupRelation(@Param("list") List<AttrAttrgroupRelationEntity> list);

    List<SpuItemAttrGroupVo> getAttrGroupWithAttrsBySpuId(@Param("spuId") Long spuId, @Param("catalogId") Long catalogId);
}
